package ModifiersTest.pk1;

public class Coo{
    static void show(){
        Aoo o = new Aoo();
        //o.a = 10;
        o.b = 20;
        o.c = 30;
        //o.d = 4; //编译错误,同包能访问public、protect、默认修饰符修饰的变量，不能访问private修饰的变量
        System.out.println("a="+o.a);
        System.out.println("b="+o.b);
        System.out.println("c="+o.c);
    }

    public static void main(String[] args) {
        show();
    }
}
